package day8;

import java.net.SecureCacheResponse;
import java.util.Scanner;

public class demo1 {

//    public static int method(int a,int b){
//        if(b==0)return a;
//        return method(b,a%b);
//    }
//
//    public static void main(String[] args) {
//        Scanner in=new Scanner(System.in);
//        int a=in.nextInt(),b=in.nextInt();
//        System.out.println(a*b/method(a,b));
//    }


    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        int a=in.nextInt(),b=in.nextInt();
        System.out.println(a*b/m(a,b));
    }

    public static int m(int a,int b){
        while(b!=0){
            int t=a%b;
            a=b;
            b=t;
        }
        return a;
    }

}
